﻿using System;

namespace Ecobee.Net
{
	public class Error : ApiObject
	{
		public string Name { get; set; }
		public string Description { get; set; }
		public Uri Uri { get; set; }

		protected override void OnFromDataObject(dynamic dataObject)
		{
			this.Name = dataObject.error;
			this.Description = dataObject.error_descripton;
			this.Uri = new Uri(dataObject.error_uri);
		}
	}
}
